package com.gofaraway.web.controller;


import com.gofaraway.common.annotation.Idempotent;
import com.gofaraway.common.vo.RequestData;
import com.gofaraway.service.facade.request.OrderRequest;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author ChenPeng
 * @Date 2024/4/11 14:06
 */
@RestController
@RequestMapping("/order")
public class OrderController {

    @RequestMapping("/saveOrder")
    @Idempotent(name = "requestData", type = RequestData.class, field = "token")
    public String saveOrder(@RequestBody RequestData<OrderRequest> requestData) {
        // 业务操作 ....
        return "success";
    }

}
